home *** CD-ROM | disk | FTP | other *** search
- 100 REM * UPDATE.BAS * FOR USE WITH DRILL.BAS PROGRAM TO UPDATE SPELLING FILES
- 110 DIM WO$(20)
- 120 PRINT
- 130 CLS
- 140 PRINT TAB(5)"----- Update Spelling Lesson Files -----"
- 150 PRINT
- 160 PRINT TAB(10)"1- Create a new Spelling file"
- 170 PRINT TAB(10)"2- Edit an existing Spelling file"
- 180 PRINT TAB(10)"3- END and Return to Drill Program
- 190 PRINT TAB(10)"4- END Session and Quit
- 200 PRINT
- 210 PRINT TAB(10)"The number of your choice is ";:INPUT A
- 220 IF A<1 OR A>4 THEN 130
- 230 ON A GOTO 240,430,560,570
- 240 PRINT"What is the number of this new spelling lesson";:INPUT A$:A=VAL(A$)
- 250 PRINT"What is the grade level of this lesson (4,5,6,7,8)";:INPUT GL$
- 260 IF VAL(GL$)<4 OR VAL(GL$)>8 THEN 250
- 270 CLS:PRINT"Enter your words as each number appears."
- 280 FOR X=1 TO 20
- 290 PRINT X;TAB(5);:INPUT WO$(X)
- 300 NEXT X
- 310 CLS
- 320 FOR X=1 TO 20 STEP 2
- 330 PRINT X;TAB(5);WO$(X);TAB(30);X+1;TAB(35);WO$(X+1)
- 340 NEXT X
- 350 U$="UNIT"+GL$+RIGHT$(A$,LEN(A$))
- 360 PRINT"Now saving file ";U$
- 370 OPEN "O",1,U$
- 380 FOR X=1 TO 20
- 390 PRINT #1,WO$(X)
- 400 NEXT X
- 410 CLOSE 1
- 420 GOTO 130
- 430 INPUT"ENTER the number of the lesson to correct";A$
- 440 INPUT"What is the Grade Level (4,5,6,7,8)";GL$
- 450 U$="UNIT"+GL$+A$
- 460 OPEN "I",1,U$
- 470 FOR X=1 TO 20
- 480 INPUT #1,WO$(X)
- 490 NEXT X
- 500 CLOSE 1
- 510 PRINT"Press ENTER to continue, or retype the word."
- 520 FOR X=1 TO 20
- 530 PRINT X;TAB(5);WO$(X);:W$=WO$(X):INPUT WO$(X):IF WO$(X)="" THEN WO$(X)=W$
- 540 NEXT X
- 550 GOTO 370
- 560 RUN"DRILL.BAS"
- 570 CLS:PRINT"Update Session is ended.":END